package com.aioething.iot.service;

import com.aioething.iot.dto.FirmwareDto;
import com.aioething.iot.model.Firmware;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.List;

public interface IFirmwareService {
    int save(Firmware firmware, MultipartFile file) throws IOException, NoSuchAlgorithmException, InvalidKeyException;
    int delete(String firmwareId) throws IOException, NoSuchAlgorithmException, InvalidKeyException;
    PageInfo<Firmware> query(FirmwareDto firmwareDto);
    List<Firmware> list(FirmwareDto firmwareDto);
}
